local skel = fk.CreateSkill {
  name = "rmt__qushi",
  tags = {Skill.Switch},
}

Fk:loadTranslationTable{
  ["rmt__qushi"] = "驱势",
  [":rmt__qushi"] = "转换技，①其他角色②你回复体力后，你可以摸两张牌。",

  [":rmt__qushi_yang"] = "转换技，<font color=\"#E0DB2F\">①其他角色</font>②你回复体力后，你可以摸两张牌。",
  [":rmt__qushi_yin"] = "转换技，①其他角色<font color=\"#E0DB2F\">②你</font>回复体力后，你可以摸两张牌。",

  ["$rmt__qushi1"] = "老贼计穷势迫，卒谋叛逆，困则自毙。",
  ["$rmt__qushi2"] = "群羊虽众，匹夫持一竿可驱之。",
}

skel:addEffect(fk.HpRecover, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    if player:hasSkill(skel.name) then
      if player:getSwitchSkillState(skel.name, false) == fk.SwitchYang then
        return target ~= player
      else
        return target == player
      end
    end
  end,
  on_use = function(self, event, target, player, data)
    player:drawCards(2, skel.name)
  end,
})

return skel
